Skip to content

Conversation

@melginaldi
Copy link
Contributor

@melginaldi melginaldi commented Oct 17, 2025

Commit Message: Add bits to the FilterState in ExtProcLoggingInfo for when an immediate response is sent and when continue_and_replace is used.
Additional Description: These bits will be useful for internal debugging. Continue and Replace is only relevant for request and response headers.
Risk Level: Low
Testing: Unit Integration tests

Docs Changes: N/A
Release Notes: Add new bits into ExtProcLoggingInfo for Immediate Response occurrence and ContinueAndReplace.
Platform Specific Features: N/A

/assign @yanjunxiang-google

@repokitteh-read-only
Copy link

As a reminder, PRs marked as draft will not be automatically assigned reviewers,
or be handled by maintainer-oncall triage.

Please mark your PR as ready when you want it to be reviewed!

🐱

Caused by: #41602 was opened by melginaldi.

see: more, trace.

@melginaldi melginaldi marked this pull request as ready for review October 17, 2025 19:41
@melginaldi
Copy link
Contributor Author

/assign @yanjunxiang-google

@RyanTheOptimist
Copy link
Contributor

/assign @tyxia

Copy link
Member

@tyxia tyxia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM in general. Thanks for contribution!

I will let @yanjunxiang-google review it as well

void onFinishProcessorCall(Grpc::Status::GrpcStatus call_status,
CallbackState next_state = CallbackState::Idle);
CallbackState next_state = CallbackState::Idle,
bool continue_and_replace = false);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: given this function is only called in two places, we can just specify continue_and_replace on the caller site, instead of having default arg

// Test the ability of the filter to completely replace a request message with a new
// request message.
TEST_P(ExtProcIntegrationTest, ExtProcLoggingInfoContinueAndReplace) {
auto access_log_path = TestEnvironment::temporaryPath(TestUtility::uniqueFilename());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we probably should think about sharing the common code between tests. e.g., ExtProcLoggingInfoGRPCTimeout, to improve the code maintenance.

ext_proc_integration_test has grown significantly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants